<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'index.jsp' starting page</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="js/jquery/uploadify-v3.1/uploadify.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="js/jquery/uploadify-v3.1/jquery.uploadify-3.1.js"></script>
		
		
		<script type="text/javascript">
		
		$(document).ready(function() {
		 	$("#upload").uploadify({
		        height        : 30,
		        swf           : '/js/jquery/uploadify-v3.1/uploadify.swf',
		        //uploader      : '/ajax/upload/uploadFile.do',
		        script			:	'/ajax/upload/uploadFile.do',
		        width         : 120
		    });
			
		});
		</script>
		

	</head>

	<body>
		
		<div id="common_upload">
			<h1>common_upload</h1>
			<form action="/ajax/upload/saveSysFile.do" method="post" enctype="multipart/form-data">
				<input type="file" name="upload" id="upload_common" />
				
				<p>
					<input type="submit" value="上传文件到服务器">
				</p>			
			</form>
		</div>

		
		<div id="ajax_upload">
			<h1>ajax_upload</h1>
			<input type="file" name="upload" id="upload" />
			<!--显示结果-->
		</div>
	</body>
</html>